Spread WinForms 15
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet Namespace / Collection<T> Class / IndexOf Method
The object to locate in the IList.


In This Topic
IndexOf Method (Collection<T>)
In This Topic
Determines the index of a specific item in the IList.
Syntax
'Declaration
 
Public Function IndexOf( _
   ByVal item As T _
) As Integer
 
'Usage
 
Dim instance As Collection(Of T)
Dim item As T
Dim value As Integer
 
value = instance.IndexOf(item)

Parameters

item
The object to locate in the IList.

Return Value

The index of item if found in the list; otherwise, -1.
See Also